﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Store.Manager.ERP.Domain.Entities
{
    public class IncomingOrderDetail
    {
        [SugarColumn(IsPrimaryKey =true,IsIdentity =true)]
        public int Id { get; set; } // 入库单明细唯一标识
        public string IncomingOrderNumber { get; set; } // 所属入库单号
        public string ProductCode { get; set; } // 商品 编号
        public int Quantity { get; set; } // 入库数量

        // 导航属性，用于关联入库单和商品
        public virtual IncomingOrder IncomingOrder { get; set; }
        public virtual Product Product { get; set; }
    }
}
